package com.zenglx.assembly.increasingSequence.api;

/**
 * 递增序列生成常量类
 * @author zengliangxi
 */
public interface SequenceGeneratorConstant {

    /**
     * 递增序列生成类型
     */
    String SEQUENCE_GENERATOR_TYPE = "com.zenglx.assembly.sequenceGenerator.type";

    /**
     * 基于redis序列生成
     */
    String SEQUENCE_GENERATOR_TYPE_REDIS = "redis";

    /**
     * 基于存储过程序列生成
     */
    String SEQUENCE_GENERATOR_TYPE_PROCEDURE = "procedure";

    /**
     * 基于乐观锁序列生成
     */
    String SEQUENCE_GENERATOR_TYPE_LOCK = "lock";

    /**
     * 默认的乐观锁key
     */
    String DEFAULT_OPTIMISTIC_LOCK = "default-lock";


}
